#include "stdafx.h"
#include "Stack.h"


CStack::CStack()
{
}


CStack::~CStack()
{
}

uint CStack::Reset()
{
    count = 0;
    return 0;
}

uint CStack::Push( uint data )
{
    buffer[count] = data;
    count++;
    return 0;
}

uint CStack::Pop( )
{
    count--;
    return buffer[count];
}